package com.mgface.framework.springcloud.feign;

import com.mgface.framework.Configuration1;
import com.mgface.framework.springcloud.entity.User;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.netflix.feign.FeignClient;

/**
 * @author wanyuxiang
 * @version 1.0
 * @project ms-feign
 * @create 2017-04-11 10:51
 **/
@FeignClient(name="ms-provider-user",configuration = Configuration1.class,fallback = HystrixClientFallback.class)
public interface UserFeignClient {
    @RequestLine("GET /simple/{id}")
    public User findById(@Param("id") Long id);
}
